package com.qianyu.versioncontrolcore.entity.bean;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.qianyu.versioncontrolcore.entity.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @TableName tb_version_conf
 */
@Data
@ApiModel(value = "版本")
@TableName(value = "tb_version_conf")
public class VersionConf extends BaseBean {

    /**
     * 版本号
     */
    @NotBlank(message = "[版本号]不能为空")
    @Size(max = 20, message = "编码长度不能超过20")
    @ApiModelProperty("版本号")
    private String version;
    /**
     * 桶容量
     */
    @NotNull(message = "[桶容量]不能为空")
    @ApiModelProperty("桶容量")
    private Integer burst;
    /**
     * 多少秒内
     */
    @NotNull(message = "[多少秒内]不能为空")
    @ApiModelProperty("多少秒内")
    private Integer time;
    /**
     * 间隔秒
     */
    @NotNull(message = "[间隔秒]不能为空")
    @ApiModelProperty("间隔秒")
    private Integer space;
    /**
     * 优先级
     */
    @NotNull(message = "[优先级]不能为空")
    @ApiModelProperty("优先级")
    private Integer priority;


    /**
     * 注册成功数
     */
    @ApiModelProperty("注册成功数")
    @TableField(exist = false)
    private Integer num;

}
